// Problem: 
// Contest: 
// URL: 
// Memory Limit: 
// Time Limit: 
// #pragma GCC optimize("Ofast")
// #pragma GCC optimize("unroll-loops")
// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native")
#include<bits/stdc++.h>
using namespace std;
#define int long long
inline int read(){
	int s=0,w=1;
	char ch=getchar();
	while(ch<'0'||ch>'9'){if(ch=='-')w=-1;ch=getchar();}
	while(ch>='0'&&ch<='9') s=s*10+ch-'0',ch=getchar();
	return s*w;
}
vector<vector<bool>> f;
int dx[9]={0,0,1,1,1,-1,-1,-1,0};
int dy[9]={1,-1,1,0,-1,1,0,-1,0};
bool dfs(int x,int y,int c)
{
	if(c==8)return 1;
	for(int i=0;i<9;i++)
	{
		int xx=x+dx[i],yy=y+dy[i];
		if(xx<1||xx>8||yy<1||yy>8)continue;
		if(xx>=c+2&&f[xx-c-1][yy])continue;
		if(xx>=c+1&&f[xx-c][yy])continue;
		if(dfs(xx,yy,c+1))return 1;
	}
	return 0;
}
signed main()
{
	f=vector<vector<bool>> (9,vector<bool>(9));
	char v;
	for(int i=1;i<=8;i++)
		for(int j=1;j<=8;j++)
		{
			cin>>v;
			if(v=='S')f[i][j]=1;
		}	
	if(dfs(8,1,0)) cout<<"WIN";
	else cout<<"LOSE";
	return 0;
}
